-- GENERATED SPELL FOR [Toxic Horror] --


function spell0_7132(pUnit, Event) --@Deadly Poison,n/a--
pUnit:FullCastSpellOnTarget(13582,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7132', 2000, 1)
end

function spell1_7132(pUnit, Event) --@Localized Toxin,n/a--
pUnit:FullCastSpellOnTarget(7947,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7132', 0, 1)
end

function Sorts_7132(pUnit, Event)
local choix_sorts_7132 = math.random(0, 1)
if choix_sorts_7132 == 0 then
pUnit:RegisterEvent('spell0_7132', 1, 1)
end
if choix_sorts_7132 == 1 then
pUnit:RegisterEvent('spell1_7132', 1, 1)
end
end

function mob7132_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7132', math.random(1500, 3000), 1)
end

function mob7132_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7132_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7132_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7132, 1, 'mob7132_Action')
RegisterUnitEvent(7132, 2, 'mob7132_Leave')
RegisterUnitEvent(7132, 3, 'mob7132_Kill')
RegisterUnitEvent(7132, 4, 'mob7132_Die')
